//
//  ReadInfoViewCell.m
//  WYnewsss
//
//  Created by lanou on 16/4/28.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "ReadInfoViewCell.h"
#import "ReadInfoModel.h"
#import <UIImageView+WebCache.h>
@implementation ReadInfoViewCell
-(void)setDataWithModel:(ReadInfoModel *)model{
    [_imgsrcImageView sd_setImageWithURL:[NSURL URLWithString:model.imgsrc]];
    _titleLabel.text=model.title;
    _sourceLabel.text=model.source;
    if (model.imgsrc.length==0) {
        self.distance.constant=0;
      
    }else{
        self.distance.constant=150;
      
    }
    
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
